package indi.woniu.service;

import com.github.pagehelper.PageInfo;
import indi.woniu.entity.PerPage;
import indi.woniu.entity.Question;
import indi.woniu.entity.QuestionDTO;
import indi.woniu.entity.ResponseEntity;

import java.util.List;

public interface IssueService {
    Integer addOne(QuestionDTO questionDTO);

    Integer delOne(int id);

    ResponseEntity<PageInfo<QuestionDTO>> findByCondition(PerPage<QuestionDTO> perPage);

    ResponseEntity<PageInfo<QuestionDTO>> findByCond(PerPage<QuestionDTO> perPage);

    Integer updateOne(QuestionDTO questionDTO);

    List<QuestionDTO> findAll();

    QuestionDTO findById(int id);
}
